home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJGOS106.ARJ / AOUT.H next >
C/C++ Source or Header  |  1992-04-13  |  1KB  |  66 lines

  1. /* This is file AOUT.H */
  2. /*
  3. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. /* History:45,17 */
  16. #ifndef _A_OUT_H_
  17. #define    _A_OUT_H_
  18.  
  19. typedef struct filehdr {
  20.     unsigned short f_magic;
  21.     unsigned short f_nscns;
  22.     long f_timdat;
  23.     long f_symptr;
  24.     long f_nsyms;
  25.     unsigned short f_opthdr;
  26.     unsigned short f_flags;
  27.     } FILEHDR;
  28.  
  29. typedef struct aouthdr {
  30.     int magic;
  31.     int vstamp;
  32.     long tsize;
  33.     long dsize;
  34.     long bsize;
  35.     long entry;
  36.     long text_start;
  37.     long data_start;
  38.     } AOUTHDR;
  39.  
  40. typedef struct scnhdr {
  41.     char s_name[8];
  42.     long s_paddr;
  43.     long s_vaddr;
  44.     long s_size;
  45.     long s_scnptr;
  46.     long s_relptr;
  47.     long s_lnnoptr;
  48.     unsigned short s_nreloc;
  49.     unsigned short nlnno;
  50.     long s_flags;
  51.     } SCNHDR;
  52.  
  53.  
  54. typedef struct gnu_aout {
  55.     word32 info;
  56.     word32 tsize;
  57.     word32 dsize;
  58.     word32 bsize;
  59.     word32 symsize;
  60.     word32 entry;
  61.     word32 txrel;
  62.     word32 dtrel;
  63.     } GNU_AOUT;
  64.  
  65. #endif
  66.